package storm.Processors;

import java.util.Arrays;

import storm.Tasks.Task;


@SuppressWarnings("unchecked")
class reg  implements java.lang.Comparable{
		Task T;
		int date;
		reg (int d, Task t){
			this.T = t;
			this.date = d;
		}
		
		 public int compareTo(Object other) { 
			 //System.out.println("test);
		      int nombre1 = ((reg) other).date; 
		      int nombre2 = this.date; 
		      if (nombre1 > nombre2)  return -1; 
		      else if(nombre1 == nombre2) return 0; 
		      else return 1; 
		   } 
}



public class Cache extends storm.Entity {

	
	public void setMemory(int s){
		
	}
	public Cache (){
		
	}
	public int havePenality(Task getrunning) {
		// TODO Auto-generated method stub
		
		return 0;
	}

}
